/* ---------------------------------------------------------------------------
 * This software is in the public domain, furnished "as is", without technical
 * support, and with no warranty, express or implied, as to its usefulness for
 * any purpose.
 *
 * File.h
 *
 * Author: Guillaume Boissé
 * -------------------------------------------------------------------------*/

#ifndef _JSP_FILE_H
#define _JSP_FILE_H

#include "Types.h"

#include <cstdio>

namespace jsp
{

class File
{
public:
    File(const s8* pFilename);
    virtual ~File();

    const s8* text() const;

protected:
    FILE* m_pFile;

    size_t m_size;
    s8* m_pContent;
};

} // namespace jsp

#endif // _JSP_FILE_H
